hackerrank subarray division problem solution in python

visit shbcf.ru